/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.skymr.sms.ui;

import com.skymr.sms.model.Contactor;
import java.util.List;
import javax.swing.ListModel;
import javax.swing.event.ListDataListener;

/**
 *
 * @author skymr
 */
public class DataModel implements ListModel{
    private List<Contactor> lists;
    public DataModel(List<Contactor> lists){
        this.lists = lists;
    }
    @Override
    public int getSize() {
        return lists.size();
    }

    @Override
    public Object getElementAt(int index) {
        return lists.get(index);
    }

    @Override
    public void addListDataListener(ListDataListener l) {
    }

    @Override
    public void removeListDataListener(ListDataListener l) {
    }
    
}
